package cn.edu.cxcyzx.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.cxcyzx.entity.CheckProject;
import cn.edu.cxcyzx.entity.CheckProjectPOJO;

public interface CheckProjectService {
	
	public void  insert_checkProject(CheckProject checkProject);
	
	public CheckProject getCheckProject(int projectId);
	/**
	 * 查询所有项目
	 * @return
	 */
	public List<CheckProjectPOJO> getAllPro();
	/**
	 * 查询待验收项目数量
	 * @return
	 */
	public int getNum_checkPro();
	/**
	 * 同意验收
	 * @param checkProject
	 */
	public void success_checkPro(CheckProject checkProject);
	/**
	 * 驳回验收请求
	 * @param failCheckInfo
	 * @param projectId
	 */
	public void fail_checkPro(String failCheckInfo,int projectId);
	/**
	 * 更新验收结果
	 * @param checkProject
	 */
	@Transactional
	public void setCheckResult(CheckProject checkProject);
	

}
